<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<head>
<title>Administrator</title>
		</head>
		<br />
		<f:event listener="#{loginBean.verifyA()}" type="preRenderView"></f:event>
		<br />
		<br />
		<h:form>
			<div align="center">
				<h2></h2>
				<h:outputText value="#{msg.selectOption}"/>
				<h:selectOneMenu value="#{adminBean.optiune}"
					styleClass="dropdownlist">
					<f:selectItem itemValue="#{msg.create}" />
					<f:selectItem itemValue="#{msg.read}" />
					<f:selectItem itemValue="#{msg.delete}" />
				</h:selectOneMenu>
				<br></br>
				<h:commandButton value="#{msg.employees}" styleClass="button"
					action="#{adminBean.angajati()}" />
				<h:commandButton value="#{msg.questionnaires}" styleClass="button"
					action="#{adminBean.chestionare()}" />
				<h:commandButton value="#{msg.library}" styleClass="button"
					action="#{adminBean.carti()}" />
				<h:commandButton value="#{msg.requests}" action="#{adminBean.cereri()}"
					styleClass="button" />
				<br></br>
				<h:panelGrid columns="2" styleClass="inner-table login">
					<h:outputText value="#{msg.firstname}:" />
					<h:outputText value="#{loginBean.firstname}" />
					<h:outputText value="#{msg.username}:"></h:outputText>
					<h:outputText value="#{loginBean.uname}"></h:outputText>
					<h:outputText value="#{msg.lastname}:"></h:outputText>
					<h:outputText value="#{loginBean.lastname}"></h:outputText>
					<h:outputText value="#{msg.birthdate}:"></h:outputText>
					<h:outputText value="#{loginBean.dateofbirth}"></h:outputText>
					<h:outputText value="#{msg.email}:"></h:outputText>
					<h:outputText value="#{loginBean.email}"></h:outputText>
					<h:outputText value="#{msg.salary}:"></h:outputText>
					<h:outputText value="#{loginBean.salar}"></h:outputText>
					<h:outputText value="#{msg.contactperson}:"></h:outputText>
					<h:outputText value="#{loginBean.contactpersonde}"></h:outputText>
				</h:panelGrid>
				<br></br>

				<h:commandButton value="#{msg.logout}" styleClass="button"
					action="#{adminBean.logOut()}" />
				<h:messages styleClass="errorMessage"></h:messages>
			</div>

		</h:form>
	</ui:define>

</ui:composition>

</html>






